package com.atguigu.springcloud.dao;

import com.atguigu.springcloud.entities.Payment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Mapper
//@Repository //(用这个注解教程里说插入有事会有问题，所以用@mapper)
public interface PaymentDao {
    public int create(Payment  payment);
    public Payment getPaymentById(@Param("id") Long id);
}
